package day0722API;

import dayOOP0714.Stud;

import java.util.ArrayList;
import java.util.Collections;

public class Test2 {
    public static void main(String[] args) {
        ArrayList list2=new ArrayList();
        list2.add(new Stud(1001,"张三",'w',1.7));
        list2.add(new Stud(1002,"李四",'F',1.8));
        list2.add(new Stud(1003,"王五",'w',1.9));
        list2.add(new Stud(1004,"赵六",'F',1.7));
        list2.add(new Stud(1005,"乔峰",'w',1.6));
        //集合排序
        Collections.sort(list2);
        System.out.println(list2);
    }
}
